#ifndef BuzzerFan_h_
#define BuzzerFan_h_

#include "define.h"
//
//#define		BUZZER_ON();		_pc2=~_pc2;
//#define		BUZZER_OFF();		_pc2 = 0;

#define 	BUZZER_ON();			{_pcken = 1;_pckd = 1; _pckpol = 1;} 
#define		BUZZER_OFF();			{_pcken = 0;_pckd = 0; _pckpol = 0;} // PCK DISABLE ,OUTPUT L  


//#define		FAN					_pb4


//#define		BUZZER_ON();		_pc2=~_pc2;
//#define		BUZZER_OFF();		_pc2 = 0;

#define		FAN					_pc0


#define		BUZZER_ON_20MS()		{BuzDelay=2;}
#define		BUZZER_ON_50MS()		{BuzDelay=5;}
#define		BUZZER_ON_100MS()		{BuzDelay=10;}
#define		BUZZER_ON_200MS()		{BuzDelay=20;}
#define		BUZZER_ON_300MS()		{BuzDelay=30;}
#define		BUZZER_ON_400MS()		{BuzDelay=40;}
#define		BUZZER_ON_500MS()		{BuzDelay=50;}

void BuzzerFan(unsigned int FanDelayTime_S);
void BuzzerProcess(void);

extern u8	BuzDelay, FanDelay;
extern bit bit_BUZZER, bit_FAN;

#endif

/******************* End of  file ***************/